package com.example.prison.service;

import com.example.prison.entity.DeviceInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

/**
* @author jiang
* @description 针对表【device_info】的数据库操作Service
* @createDate 2023-05-29 11:38:26
*/
public interface DeviceInfoService extends IService<DeviceInfo> {

    PageInfo<DeviceInfo> get(int pageNumber, int pageSize);

    int add(DeviceInfo device);

    void delete(Integer[] ids);

    int update(DeviceInfo device, Integer deviceId);

    DeviceInfo getById(Integer departId);

    PageInfo<DeviceInfo> getByName(int pageNumber, int pageSize, String deviceName);

    DeviceInfo getOneByName(String deviceName);

    PageInfo<DeviceInfo> getByNumber(int pageNumber, int pageSize, String deviceNumber);

    DeviceInfo getOneByNumber(String deviceNumber);
}
